class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|

      t.column :login, :string
      t.column :hashed_password, :string
      t.column :email, :string
      t.column :salt, :string
      t.column :created_at, :datetime
      t.column :name, :string
      t.column :lastname, :string
      t.column :sex, :string
      t.column :birthdate, :date
	  t.column :phone, :string
      t.column :address, :string
      t.column :city, :string
      t.column :state, :string
      t.column :role, :string
      t.column :country_idf, :integer
      
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end





